package zb.blog.dao;

import org.apache.ibatis.annotations.Param;
import zb.blog.bean.CommentBean;

import java.util.List;
import java.util.Map;

public interface CommentDao {

    void addComment(@Param("param") Map<String, String> param);

    List<CommentBean> getCommentByArticleId(@Param("id") Integer id, @Param("audit_status") Integer audit_status);

    List<CommentBean> getCommentByPId(@Param("pId") int pId, @Param("audit_status") int audit_status);

    Integer getisComm(@Param("artId") Integer artId, @Param("ip") String ip);
}
